home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Shaders / WWShaders / WWAlphaConstant.sl < prev    next >
Encoding:
Text File  |  1995-03-22  |  237 b   |  14 lines

  1. surface 
  2. WWAlphaConstant(string    mapname = "")
  3. {
  4.    if (mapname != "")
  5.    {  Ci = color texture(mapname);  /* Use s and t */
  6.       Oi = float texture(mapname[3]);  /* Use s and t */
  7.    }
  8.    else
  9.    {  Oi = Os;
  10.       Ci = Os * Cs;
  11.    }
  12. }
  13.  
  14.